Other Constants
The following constants are available globally.
-
In the old legacy file format the default number of PBKDF rounds is 50000. The new default is
PSPDFAESDefaultPBKDFNumberOfRounds
. (10000)Declaration
Objective-C
extern const NSUInteger PSPDFDefaultPBKDFNumberOfRounds
Swift
class let defaultNumberOfPBKDFRounds: UInt
-
The PSPDFAESCryptoInputStream Error Domain.
Note
Used in the PSPDFAESCryptoInputStream -(NSError *)streamError method.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFAESCryptoInputStreamErrorDomain
Swift
let PSPDFAESCryptoInputStreamErrorDomain: String
-
The PSPDFAESCryptoOutputStream Error Domain.
Note
Used in the PSPDFAESCryptoOutputStream -(NSError *)streamError method.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFAESCryptoOutputStreamErrorDomain
Swift
let PSPDFAESCryptoOutputStreamErrorDomain: String
-
Set to @YES in the options dictionary to make links modal.
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionModalKey
Swift
static let modalKey: Action.Option
-
Enable Autoplay if target is a video.
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionAutoplayKey
Swift
static let autoplayKey: Action.Option
-
Enable/Disable controls. (e.g. Browser back/next buttons)
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionControlsKey
Swift
static let controlsKey: Action.Option
-
Loop the video.
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionLoopKey
Swift
static let loopKey: Action.Option
-
Allow fullscreen presentation.
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionFullscreenKey
Swift
static let fullscreenKey: Action.Option
-
Set video offset.
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionOffsetKey
Swift
static let offsetKey: Action.Option
-
Set modal size.
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionSizeKey
Swift
static let sizeKey: Action.Option
-
Show as popover.
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionPopoverKey
Swift
static let popoverKey: Action.Option
-
Show cover, accepts string path.
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionCoverKey
Swift
static let coverKey: Action.Option
-
The target page.
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionPageKey
Swift
static let pageKey: Action.Option
-
Shows a button that activates links.
Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionButtonKey
Swift
static let buttonKey: Action.Option
-
Controls if a close button is displayed, when
PSPDFActionOptionButtonKey
is used. Default will be YES.Declaration
Objective-C
extern const PSPDFActionOption _Nonnull PSPDFActionOptionCloseButtonKey
Swift
static let closeButtonKey: Action.Option
-
Constant to convert
PSPDFActionType
intoNSString
and back.Note
The transformer is added in the class initialize phase. RequiresPSPDFAnnotation
to be accessed at least once.Declaration
Objective-C
extern NS_SWIFT_NAME(actionType) const NSValueTransformerName PSPDFActionTypeTransformerName
Swift
static let actionType: NSValueTransformerName
-
Tool for adding links.
This annotation type also includes PSPDFKit multimedia extensions.
See
This tool createsPSPDFLinkAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringLink
Swift
static let link: Annotation.Tool
-
Tool for highlighting text.
See
This tool createsPSPDFHighlightAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringHighlight
Swift
static let highlight: Annotation.Tool
-
Tool for striking through text.
See
This tool createsPSPDFStrikeOutAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringStrikeOut
Swift
static let strikeOut: Annotation.Tool
-
Tool for underlining text.
See
This tool createsPSPDFUnderlineAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringUnderline
Swift
static let underline: Annotation.Tool
-
Tool for underlining text with a squiggly line.
See
This tool createsPSPDFSquigglyAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringSquiggly
Swift
static let squiggly: Annotation.Tool
-
Tool for adding a note (AKA a comment) to a document.
This shows an icon on the page and the full text of the comment (including any replies) are shown in a popup when tapping the icon.
See
This tool createsPSPDFNoteAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringNote
Swift
static let note: Annotation.Tool
-
Tool for adding text annotations.
Text annotations show their text overlaid over the page itself rather than in a popup (as note annotations do).
Callout annotations are a variant of text annotations (
PSPDFAnnotationVariantStringFreeTextCallout
).See
This tool createsFreeTextAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringFreeText
Swift
static let freeText: Annotation.Tool
-
Tool for freehand drawing, writing or highlighting.
Ink signatures created using
Annotation.Tool.signature
will have this regular ink type after creation. You can check if an ink annotation is a signature using theisSignature
property, which is a proprietary PSPDFKit extension stored in the PDF.See
This tool createsPSPDFInkAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringInk
Swift
static let ink: Annotation.Tool
-
Tool for adding rectangles.
See
This tool createsPSPDFSquareAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringSquare
Swift
static let square: Annotation.Tool
-
Tool for adding ellipses.
See
This tool createsPSPDFCircleAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringCircle
Swift
static let circle: Annotation.Tool
-
Tool for adding lines or arrows.
See
This tool createsPSPDFLineAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringLine
Swift
static let line: Annotation.Tool
-
Tool for adding polygons (closed shapes).
See
This tool createsPSPDFPolygonAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringPolygon
Swift
static let polygon: Annotation.Tool
-
Tool for adding joined straight lines (open shapes).
See
This tool createsPSPDFPolyLineAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringPolyLine
Swift
static let polyLine: Annotation.Tool
-
Tool for adding signatures.
This type applies to both signatures added using a certificate (digital signatures) and those added without a certificate, which end up as drawings (
PSPDFAnnotationStringInk
). You can check if an ink annotation is a signature using theisSignature
property, which is a proprietary PSPDFKit extension stored in the PDF.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringSignature
Swift
static let signature: Annotation.Tool
-
Tool for adding stamps.
Images added using
PSPDFAnnotationStringImage
will end up with this type.Stamps display text or certain predefined vector images.
Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringStamp
Swift
static let stamp: Annotation.Tool
-
Special tool for erasing parts of drawings (ink annotations).
There is no corresponding annotation type.
Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringEraser
Swift
static let eraser: Annotation.Tool
-
Tool for adding sound annotations.
Can be played back and recorded by default, but by default playback and recording will not work when the host app is in the background. If you want to enable background playback and recording, you’ll need to add the “audio” entry to the
UIBackgroundModes
array in the app’s Info.plist. If you do not add this, then recording will be stopped and playback will be silenced when your app is sent into the background.See
This tool createsPSPDFSoundAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringSound
Swift
static let sound: Annotation.Tool
-
Tool for adding images.
After being added to a document, an image will have the
typeString
PSPDFAnnotationStringStamp
.UIImagePickerController
will be used to pick an image. This will throw aUIApplicationInvalidInterfaceOrientation
exception if your app does not include portrait inUISupportedInterfaceOrientations
(Info.plist). For landscape only apps, we suggest enabling portrait orientation(s) in your Info.plist and rejecting these inUIViewController
’s auto-rotation methods. This way, you can be landscape only for your view controllers and still be able to useUIImagePickerController
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringImage
Swift
static let image: Annotation.Tool
-
Tool for adding redaction annotations.
See
This tool createsPSPDFRedactionAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringRedaction
Swift
static let redaction: Annotation.Tool
-
A type for widget annotations, which are used for PDF forms.
This is a non-writable annotation type. There is no tool for creating form elements. Instead presence or absence of this value in the
editableAnnotationTypes
of the configuration ofPDFViewController
determines whether users can interact with PDF form elements, which edits the values of the form fields, but does not change the form elements themselves.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringWidget
Swift
static let widget: Annotation.Tool
-
File attachment.
This is a non-writable annotation type. There is no tool for creating file attachments.
See
The corresponding annotation type isPSPDFFileAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringFile
Swift
static let file: Annotation.Tool
-
Embedded PDF video.
This is a non-writable annotation type. There is no tool for creating embedded media.
See
The corresponding annotation type isPSPDFRichMediaAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringRichMedia
Swift
static let richMedia: Annotation.Tool
-
Embedded PDF video.
This is a non-writable annotation type. There is no tool for creating screen annotations.
See
The corresponding annotation type isPSPDFScreenAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringScreen
Swift
static let screen: Annotation.Tool
-
Caret annotation.
This is a non-writable annotation type. There is no tool for creating caret annotations.
See
The corresponding annotation type isPSPDFCaretAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringCaret
Swift
static let caret: Annotation.Tool
-
Popup annotation. Placeholder. Not yet supported.
Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringPopup
Swift
static let popup: Annotation.Tool
-
Watermark annotation. Placeholder. Not yet supported.
Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringWatermark
Swift
static let watermark: Annotation.Tool
-
TrapNet annotation. Placeholder. Not yet supported.
Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationStringTrapNet
Swift
static let trapNet: Annotation.Tool
-
3D annotation. Placeholder. Not yet supported.
Declaration
Objective-C
extern const PSPDFAnnotationString _Nonnull PSPDFAnnotationString3D
Swift
static let string3D: Annotation.Tool
-
NSValueTransformer
to convert betweenPSPDFAnnotationBorderStyle
enum and string value.Note
The transformer is added in the class initialize phase. RequiresPSPDFAnnotation
to be accessed at least once.Declaration
Objective-C
extern NS_SWIFT_NAME(borderStyle) const NSValueTransformerName PSPDFBorderStyleTransformerName
Swift
static let borderStyle: NSValueTransformerName
-
NSValueTransformer
to convert betweenPSPDFAnnotationBorderEffect
enum and string value.Note
The transformer is added in the class initialize phase. RequiresPSPDFAnnotation
to be accessed at least once.Declaration
Objective-C
extern NS_SWIFT_NAME(borderEffect) const NSValueTransformerName PSPDFBorderEffectTransformerName
Swift
static let borderEffect: NSValueTransformerName
-
NSValueTransformer
to convert betweenPSPDFAnnotation.TriggerEvent
enum and string value.Note
The transformer is added in the class initialize phase. RequiresPSPDFAnnotation
to be accessed at least once.Declaration
Objective-C
extern NS_SWIFT_NAME(annotationTriggerEvent) const NSValueTransformerName PSPDFAnnotationTriggerEventTransformerName
Swift
static let annotationTriggerEvent: NSValueTransformerName
-
Default value for non-fixed-sized annotations
Declaration
Objective-C
extern const CGSize PSPDFAnnotationFixedSizeDisabled
Swift
class let fixedSizeDisabled: CGSize
-
Key for attributed string attribute that contains the font size - this is set if the font size is defined.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFFontSizeName
Swift
let PSPDFFontSizeName: String
-
Key for vertical text alignment in
fontAttributes
.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFVerticalAlignmentName
Swift
let PSPDFVerticalAlignmentName: String
-
Key for the original font name when a fallback font is used to draw the the annotation’s content.
When the font specified for an annotation with text contents isn’t available on the device, a fallback font will be used to render that text. In order to preserve this data, even when updating other aspects of the annotation, the original font name will be stored as an
NSString
under this key in thefontAttributes
dictionary of the annotation while the fallback is in effect.As PSPDFKit will attempt to load the original font when possible, this value may be cleared later when the font has successfully been downloaded, and display of the annotation updated accordingly.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFOriginalFontNameAttributeName
Swift
let PSPDFOriginalFontNameAttributeName: String
-
Constant to convert
PSPDFVerticalAlignment
intoNSString
and back.Note
The transformer is added in the class initialize phase. RequiresPSPDFAnnotation
to be accessed at least once.Declaration
Objective-C
extern NS_SWIFT_NAME(verticalAlignment) const NSValueTransformerName PSPDFVerticalAlignmentTransformerName
Swift
static let verticalAlignment: NSValueTransformerName
-
Pen Ink annotation, with preset styles for pen for drawing.
Declaration
Objective-C
extern const PSPDFAnnotationVariantString _Nonnull PSPDFAnnotationVariantStringInkPen
Swift
static let inkPen: Annotation.Variant
-
Highlighter Ink annotation, with customized presets for improved text highlighting.
Declaration
Objective-C
extern const PSPDFAnnotationVariantString _Nonnull PSPDFAnnotationVariantStringInkHighlighter
Swift
static let inkHighlighter: Annotation.Variant
-
The Magic Ink tool variant converts the drawn points to a vector shape if possible.
Magic Ink supports detecting straight lines and arrows (
PSPDFLineAnnotation
), ellipses (PSPDFCircleAnnotation
), and rectangles (PSPDFSquareAnnotation
). If no shape is matched, the drawing will be left as aPSPDFInkAnnotation
.The recognition tolerance can be set with the
magicInkReplacementThreshold
property ofPDFConfiguration
.Declaration
Objective-C
extern const PSPDFAnnotationVariantString _Nonnull PSPDFAnnotationVariantStringInkMagic
Swift
static let inkMagic: Annotation.Variant
-
Line annotation variant with an arrow at one end of the line.
Declaration
Objective-C
extern const PSPDFAnnotationVariantString _Nonnull PSPDFAnnotationVariantStringLineArrow
Swift
static let lineArrow: Annotation.Variant
-
Text annotation variant that defaults to creating callout text annotations.
Declaration
Objective-C
extern const PSPDFAnnotationVariantString _Nonnull PSPDFAnnotationVariantStringFreeTextCallout
Swift
static let freeTextCallout: Annotation.Variant
-
Notification posted on the main thread when new annotations are added to the default
PSPDFContainerAnnotationProvider
. The notification object is anNSArray
containing the newPSPDFAnnotation
s.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFAnnotationsAddedNotification
Swift
static let PSPDFAnnotationsAdded: NSNotification.Name
-
Notification posted on the main thread when annotations are removed from the default
PSPDFContainerAnnotationProvider
. The notification object is anNSArray
containing the removedPSPDFAnnotation
s.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFAnnotationsRemovedNotification
Swift
static let PSPDFAnnotationsRemoved: NSNotification.Name
-
Internal events to notify the annotation providers when annotations are being changed.
Warning
Only send from main thread! Don’t call save during a change notification.
Note
The notification’s object property is a
PSPDFAnnotation
instance.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFAnnotationChangedNotification
Swift
static let PSPDFAnnotationChanged: NSNotification.Name
-
Set to YES to disable handling by views.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFAnnotationChangedNotificationIgnoreUpdateKey
Swift
let PSPDFAnnotationChangedNotificationIgnoreUpdateKey: String
-
NSArray of selector names.
Note
Properties will be prefixed with ‘is’ in Objective-C. For example, thedeleted
property becomesisDeleted
.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFAnnotationChangedNotificationKeyPathKey
Swift
let PSPDFAnnotationChangedNotificationKeyPathKey: String
-
Controls if overlay annotations should be animated. Only applies to overlay. Defaults to YES if not explicitly set to NO.
Note
This is defined on the model layer to allow passing through animated: parameters.Declaration
Objective-C
extern const PSPDFAnnotationOption _Nonnull PSPDFAnnotationOptionAnimateView
-
Prevents the insertion or removal notifications from being sent (use a BOOL NSNumber value).
Warning
Disabling this option will lead to PSPDFKit not updating its state and views when adding new annotations, which can lead to issues presenting those annotations. Therefore, we don’t recommend using this unless for cases where aPSPDFAnnotationsAdded
notification is sent manually for timing reasons.Declaration
Objective-C
extern const PSPDFAnnotationOption _Nonnull PSPDFAnnotationOptionSuppressNotifications
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFAnnotationOptionAnimateView
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFAnnotationOption const PSPDFAnnotationOptionAnimateViewKey
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFAnnotationOptionSuppressNotifications
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFAnnotationOption const PSPDFAnnotationOptionSuppressNotificationsKey
-
Style key representing the annotation color property.
Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyColor
-
Style key representing the annotation fillColor property.
Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyFillColor
-
Style key representing the annotation alpha property.
Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyAlpha
-
Style key representing the annotation lineWidth property.
Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyLineWidth
-
Style key representing the annotation dashArray property.
Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyDashArray
-
Style key representing the free text annotation lineEnd property (in callout mode).
Note
Applicable only toFreeTextAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyLineEnd
-
Style key representing the abstract line annotation lineEnd1 property.
Note
Applicable only toPSPDFAbstractLineAnnotation
subclasses.Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyLineEnd1
-
Style key representing the abstract line annotation lineEnd2 property.
Note
Applicable only toPSPDFAbstractLineAnnotation
subclasses.Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyLineEnd2
-
Style key representing the annotation fontName property.
Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyFontName
-
Style key representing the annotation fontSize property.
Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyFontSize
-
Style key representing the annotation textAlignment property.
Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyTextAlignment
-
Style key representing the annotation blendMode property.
Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyBlendMode
-
Converting a regular free text annotation to a callout modifies multiple properties. This cannot be controlled with a single property and we use a special key for the change.
Note
Applicable only toFreeTextAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyCalloutAction
-
Style key representing the outline color property of redactions.
Note
Applicable only toPSPDFRedactionAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyOutlineColor
-
Style key representing the overlay text property of redactions.
Note
Applicable only toPSPDFRedactionAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyOverlayText
-
Style key representing the property for repeating the overlay text of redactions.
Note
Applicable only toPSPDFRedactionAnnotation
.Declaration
Objective-C
extern const PSPDFAnnotationStyleKey _Nonnull PSPDFAnnotationStyleKeyRepeatOverlayText
-
This key will return the last used style.
Declaration
Objective-C
extern const PSPDFAnnotationStyleType _Nonnull PSPDFAnnotationStyleTypeLastUsed
Swift
static let lastUsed: AnnotationStyle.Kind
-
This key will mark styles as generic, thus they’ll be returned with all other style types except the last used trait.
Declaration
Objective-C
extern const PSPDFAnnotationStyleType _Nonnull PSPDFAnnotationStyleTypeGeneric
Swift
static let generic: AnnotationStyle.Kind
-
Color preset type
Declaration
Objective-C
extern const PSPDFAnnotationStyleType _Nonnull PSPDFAnnotationStyleTypeColorPreset
Swift
static let colorPreset: AnnotationStyle.Kind
-
Option for
dataProviderForAnnotation:options:
. If set, the resulting appearance stream is to be used for a flattened document.Declaration
Objective-C
extern const PSPDFAppearanceStreamGenerationOption _Nonnull PSPDFAppearanceGenerationFlatten
Swift
static let generationFlatten: AppearanceStreamGenerationOption
-
Option for
dataProviderForAnnotation:options:
. If set, the resulting appearance stream is to be used for printing.Declaration
Objective-C
extern const PSPDFAppearanceStreamGenerationOption _Nonnull PSPDFAppearanceGenerationPrint
Swift
static let generationPrint: AppearanceStreamGenerationOption
-
Policy for Open In.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventOpenIn
Swift
static let openIn: PolicyEvent
-
Policy for print.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventPrint
Swift
static let print: PolicyEvent
-
Policy for mail.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventEmail
Swift
static let email: PolicyEvent
-
Policy for message.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventMessage
Swift
static let message: PolicyEvent
-
Policy for Quick Look.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventQuickLook
Swift
static let quickLook: PolicyEvent
-
Policy for audio recording.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventAudioRecording
Swift
static let audioRecording: PolicyEvent
-
Policy for the camera.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventCamera
Swift
static let camera: PolicyEvent
-
Policy for the photo library.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventPhotoLibrary
Swift
static let photoLibrary: PolicyEvent
-
Policy for the pasteboard. Includes Copy/Paste.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventPasteboard
Swift
static let pasteboard: PolicyEvent
-
Policy for submitting forms.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventSubmitForm
Swift
static let submitForm: PolicyEvent
-
Policy for the network.
Declaration
Objective-C
extern const PSPDFPolicyEvent _Nonnull PSPDFPolicyEventNetwork
Swift
static let network: PolicyEvent
-
Register to get notified when the bookmarks managed by the bookmark manager posting this notification change.
A change is defined as adding, removing, or replacing a bookmark or changing its sort order.
This notification is guaranteed to be posted on the main thread.
Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFBookmarksChangedNotification
Swift
static let PSPDFBookmarksChanged: NSNotification.Name
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFCryptorErrorDomain
Swift
let PSPDFCryptorErrorDomain: String
-
Option indicating if glyphs should be extracted. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionExtractGlyphs
Swift
static let extractGlyphs: Document.ObjectFinderOption
-
Option indicating if full
PSPDFWord
s should be extracted. ImpliesPSPDFObjectFinderOptionExtractText
. (Type: Boolean wrapped inNSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionExtractWords
Swift
static let extractWords: Document.ObjectFinderOption
-
Option indicating if text should be extracted. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionExtractText
Swift
static let extractText: Document.ObjectFinderOption
-
Option indicating if text blocks should be extracted. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionExtractTextBlocks
Swift
static let extractTextBlocks: Document.ObjectFinderOption
-
Option indicating if image info should be extracted. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionExtractImages
Swift
static let extractImages: Document.ObjectFinderOption
-
Option indicating if annotations should be extracted. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionExtractAnnotations
Swift
static let extractAnnotations: Document.ObjectFinderOption
-
Ignore large text blocks that are > 90% of a page. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionIgnoreLargeTextBlocks
Swift
static let ignoreLargeTextBlocks: Document.ObjectFinderOption
-
Include annotations of attached type. (Type:
PSPDFAnnotationType
wrapped inNSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionAnnotationTypes
Swift
static let annotationTypes: Document.ObjectFinderOption
-
Special case; used for
PSPDFAnnotationTypeNote
hit testing. (Type:CGRect
wrapped inNSValue
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionAnnotationPageBounds
Swift
static let annotationPageBounds: Document.ObjectFinderOption
-
Special case; Used to correctly hit test zoom-invariant annotations. (Type:
CGFloat
wrapped inNSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionPageZoomLevel
Swift
static let pageZoomLevel: Document.ObjectFinderOption
-
Option indicating if annotations that are part of a group should be included. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionAnnotationIncludedGrouped
Swift
static let annotationIncludedGrouped: Document.ObjectFinderOption
-
Will sort words/annotations (smaller words/annotations first). Use for touch detection. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionSmartSort
Swift
static let smartSort: Document.ObjectFinderOption
-
Will use path-based hit-testing based on the center point if set. All annotations that support path based hit-testing but fail the test will be excluded from the results. (Type:
CGFloat
wrapped inNSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionMinDiameter
Swift
static let minDiameter: Document.ObjectFinderOption
-
Will look at the text flow and select full sentences, not just what’s within the rect. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionTextFlow
Swift
static let textFlow: Document.ObjectFinderOption
-
Will stop after finding the first matching object. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionFindFirstOnly
Swift
static let findFirstOnly: Document.ObjectFinderOption
-
Only relevant for rect. Will test for intersection instead of objects that are fully included in the pdfRect. Defaults to YES if not set. (Type: Boolean wrapped in
NSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionTestIntersection
Swift
static let testIntersection: Document.ObjectFinderOption
-
Only relevant if
PSPDFObjectFinderOptionTestIntersection
is set to YES. Test succeeds if the fraction of the overlapping area between the object and pdfRect is greater than the fraction set here. Defaults to 0 if not set, which means the test succeeds if there is any intersection at all. Valid values: 0 - 1.@note: The overlap is calculated w.r.t the total area. So, if
ao
is the area of the object,ap
is the area of pdfRect andai
is the intersecting area, then the overlap proportion would be ai / (ao + ap - ai). (Type: double wrapped inNSNumber
)Declaration
Objective-C
extern const PSPDFObjectFinderOption _Nonnull PSPDFObjectFinderOptionTestIntersectionFraction
Swift
static let testIntersectionFraction: Document.ObjectFinderOption
-
Returns matching glyphs. Return type is NSArray
* Declaration
Objective-C
extern const PSPDFObjectFinderType _Nonnull PSPDFObjectFinderTypeGlyphs
Swift
static let glyphs: Document.ObjectFinderType
-
Returns matching words. Return type is NSArray
* Declaration
Objective-C
extern const PSPDFObjectFinderType _Nonnull PSPDFObjectFinderTypeWords
Swift
static let words: Document.ObjectFinderType
-
Returns matching text. Return type is NSString *
Declaration
Objective-C
extern const PSPDFObjectFinderType _Nonnull PSPDFObjectFinderTypeText
Swift
static let text: Document.ObjectFinderType
-
Returns matching text blocks. Return type is NSArray
* Declaration
Objective-C
extern const PSPDFObjectFinderType _Nonnull PSPDFObjectFinderTypeTextBlocks
Swift
static let textBlocks: Document.ObjectFinderType
-
Returns matching image info. Return type is NSArray
* Declaration
Objective-C
extern const PSPDFObjectFinderType _Nonnull PSPDFObjectFinderTypeImages
Swift
static let images: Document.ObjectFinderType
-
Returns matching annotations. Return type is NSArray
* Declaration
Objective-C
extern const PSPDFObjectFinderType _Nonnull PSPDFObjectFinderTypeAnnotations
Swift
static let annotations: Document.ObjectFinderType
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionExtractGlyphs
orPSPDFObjectFinderTypeGlyphs
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsGlyphsKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionExtractWords
orPSPDFObjectFinderTypeWords
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsWordsKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionExtractText
orPSPDFObjectFinderTypeText
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsTextKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionExtractTextBlocks
orPSPDFObjectFinderTypeTextBlocks
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsTextBlocksKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionExtractImages
orPSPDFObjectFinderTypeImages
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsImagesKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionExtractAnnotations
orPSPDFObjectFinderTypeAnnotations
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsAnnotationsKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionIgnoreLargeTextBlocks
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsIgnoreLargeTextBlocksKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionAnnotationTypes
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsAnnotationTypesKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionAnnotationPageBounds
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsAnnotationPageBoundsKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionPageZoomLevel
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsPageZoomLevelKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionAnnotationIncludedGrouped
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsAnnotationIncludedGroupedKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionSmartSort
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsSmartSortKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionMinDiameter
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectMinDiameterKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionTextFlow
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsTextFlowKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionFindFirstOnly
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsFindFirstOnlyKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionTestIntersection
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsTestIntersectionKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFObjectFinderOptionTestIntersectionFraction
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFObjectsTestIntersectionFractionKey
-
Set to @YES to force saving, even though there are no dirty objects. This is useful in combination with a rewrite, to remove unreferenced objects:
PSPDFDocumentSaveOptionStrategy = @(PSPDFDocumentSaveStrategyRewrite)
Declaration
Objective-C
extern const PSPDFDocumentSaveOption _Nonnull PSPDFDocumentSaveOptionForceSaving
Swift
static let forceSaving: PDFDocumentSaveOption
-
Defines the save strategy. Defaults to
PSPDFDocumentSaveStrategyAppend
Declaration
Objective-C
extern const PSPDFDocumentSaveOption _Nonnull PSPDFDocumentSaveOptionStrategy
Swift
static let strategy: PDFDocumentSaveOption
-
A
PSPDFDocumentSecurityOptions
instance, specifies the security options to use when saving the document. Not passing this options means the current security options will be used.Note
RequiresFeatures.documentEditing
to be part of your license.Declaration
Objective-C
extern const PSPDFDocumentSaveOption _Nonnull PSPDFDocumentSaveOptionSecurityOptions
Swift
static let securityOptions: PDFDocumentSaveOption
-
A
BOOL
value wrapped in anNSNumber
. If set to YES, applies all redactions in the document and removes the content underneath them. Not passing this option means redactions are not applied, and redaction annotations will stay in the document.Note
RequiresFeatures.redaction
to be part of your license.Declaration
Objective-C
extern const PSPDFDocumentSaveOption _Nonnull PSPDFDocumentSaveOptionApplyRedactions
Swift
static let applyRedactions: PDFDocumentSaveOption
-
A document posts an underlying file changed notification each time one of the backing files of the document is changed and the change did not originate from the document itself. When a file deletion can be detected, the same notification will be sent with a
PSPDFDocumentUnderlyingFileWillBeDeletedKey
in the user info. The notification will be sent on the main thread.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFDocumentUnderlyingFileChangedNotification
Swift
static let PSPDFDocumentUnderlyingFileChanged: NSNotification.Name
-
The underlying file url key identifies the file url of the changed file inside a
PSPDFDocumentUnderlyingFileChangedNotification
‘s user info dictionary. It is of typeNSURL
.Declaration
Objective-C
extern NS_SWIFT_NAME(changedFileURL) const PSPDFDocumentUnderlyingFileChangedNotificationOptions PSPDFDocumentUnderlyingFileURLKey
Swift
static let changedFileURL: Document.UnderlyingFileChangedNotificationOption
-
The underlying file url key identifies the data provider that registered the change inside a
PSPDFDocumentUnderlyingFileChangedNotification
‘s user info dictionary. It is of typeid<PSPDFCoordinatedFileDataProviding>
.Declaration
Objective-C
extern const PSPDFDocumentUnderlyingFileChangedNotificationOptions _Nonnull PSPDFDocumentUnderlyingDataProvider
Swift
static let dataProvider: Document.UnderlyingFileChangedNotificationOption
-
A boolean
NSNumber
indicating that the underlying file is about to be deleted.Declaration
Objective-C
extern NS_SWIFT_NAME(deleteFile) const PSPDFDocumentUnderlyingFileChangedNotificationOptions PSPDFDocumentUnderlyingFileWillBeDeletedKey
Swift
static let deleteFile: Document.UnderlyingFileChangedNotificationOption
-
Called before the document starts to save annotations. Use to save any unsaved changes.
Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFDocumentWillSaveAnnotationsNotification
Swift
static let PSPDFDocumentWillSaveAnnotations: NSNotification.Name
-
NSUserDefaults
key for the default global annotation author name.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFDocumentDefaultAnnotationUsernameKey
Swift
let PSPDFDocumentDefaultAnnotationUsernameKey: String
-
Contains the boxed
PSPDFAnnotationType
to control appearance stream generation for each type.Declaration
Objective-C
extern const PSPDFAnnotationWriteOption _Nonnull PSPDFAnnotationWriteOptionGenerateAppearanceStreamForType
Swift
static let generateAppearanceStreamForType: Document.AnnotationWriteOption
-
The notification posted when a checkpoint is saved. The object sending this is the document’s checkpointer.
Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFDocumentCheckpointSavedNotification
Swift
static let PSPDFDocumentCheckpointSaved: NSNotification.Name
-
The key set in
PSPDFDocumentCheckpointSavedNotification
‘s userInfo that indicates (using aBOOL
wrapped in aNSNumber
) whether the checkpoint saved successfully or not.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFDocumentCheckpointSavedNotificationSuccessKey
Swift
let PSPDFDocumentCheckpointSavedNotificationSuccessKey: String
-
Deprecated
Deprecated in PSPDFKit 5.0 for macOS. Please use
PSPDFDocumentCheckpointSavedNotificationSuccessKey
Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFDocumentCheckpointSavedNotificationSucessKey
Swift
let PSPDFDocumentCheckpointSavedNotificationSucessKey: String
-
The constant to be used to indicate that the key length should be determined automatically.
Declaration
Objective-C
extern const NSUInteger PSPDFDocumentSecurityOptionsKeyLengthAutomatic
-
The XMP PDF namespace.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFXMPPDFNamespace
Swift
let PSPDFXMPPDFNamespace: String
-
The XMP PDF namespace prefix.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFXMPPDFNamespacePrefix
Swift
let PSPDFXMPPDFNamespacePrefix: String
-
The XMP Dublin Core namespace.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFXMPDCNamespace
Swift
let PSPDFXMPDCNamespace: String
-
The XMP Dublin Core namespace prefix.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFXMPDCNamespacePrefix
Swift
let PSPDFXMPDCNamespacePrefix: String
-
Posted whenever a task starts loading.
Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFDownloadManagerDidStartLoadingTaskNotification
Swift
static let PSPDFDownloadManagerDidStartLoadingTask: NSNotification.Name
-
Posted whenever a task finishes loading.
Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFDownloadManagerDidFinishLoadingTaskNotification
Swift
static let PSPDFDownloadManagerDidFinishLoadingTask: NSNotification.Name
-
Posted whenever a task failed to load.
Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFDownloadManagerDidFailToLoadTaskNotification
Swift
static let PSPDFDownloadManagerDidFailToLoadTask: NSNotification.Name
-
The default intensity used for legacy lines without explicit intensity data.
Declaration
Objective-C
extern const CGFloat PSPDFDefaultIntensity
Swift
static let defaultIntensity: CGFloat
-
Point at location
CGPointZero
withintensity
0.
.Declaration
Objective-C
extern const PSPDFDrawingPoint PSPDFDrawingPointZero
Swift
static let zero: DrawingPoint
-
An invalid point with all components set to
NaN
.Declaration
Objective-C
extern const PSPDFDrawingPoint PSPDFDrawingPointNull
Swift
static let null: DrawingPoint
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSNotificationName const PSPDFApplicationDidReceiveMemoryWarningNotification
Swift
static let PSPDFApplicationDidReceiveMemoryWarning: NSNotification.Name
-
The PSPDFKit error domain.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFErrorDomain
Swift
let PSPDFErrorDomain: String
-
Paperclip icon.
Declaration
Objective-C
extern const PSPDFFileIconName _Nonnull PSPDFFileIconNamePaperclip
Swift
static let paperclip: FileAnnotation.IconName
-
Graph icon.
Declaration
Objective-C
extern const PSPDFFileIconName _Nonnull PSPDFFileIconNameGraph
Swift
static let graph: FileAnnotation.IconName
-
Tag icon.
Declaration
Objective-C
extern const PSPDFFileIconName _Nonnull PSPDFFileIconNameTag
Swift
static let tag: FileAnnotation.IconName
-
Pushpin icon.
Declaration
Objective-C
extern const PSPDFFileIconName _Nonnull PSPDFFileIconNamePushPin
Swift
static let pushPin: FileAnnotation.IconName
-
Specifies whether the file manager should use file coordination when performing operations. Expects a boolean NSNumber.
Declaration
Objective-C
extern const PSPDFFileManagerOption _Nonnull PSPDFFileManagerOptionCoordinatedAccess
Swift
static let coordinatedAccess: DefaultFileManager.Option
-
The optional
NSFilePresenter
object to pass to the internally createdNSFileCoordinator
when performing coordinated operations. See theNSFileCoordinator
documentation for details. This is only relevant whenPSPDFFileManagerOptionCoordinatedAccess
is enabled.Declaration
Objective-C
extern const PSPDFFileManagerOption _Nonnull PSPDFFileManagerOptionFilePresenter
Swift
static let filePresenter: DefaultFileManager.Option
-
The minimum acceptable font to be used when editing fields with autosizing fonts.
Declaration
Objective-C
static const CGFloat PSPDFMinimumAcceptableFontSize = 5.
Swift
let PSPDFMinimumAcceptableFontSize: CGFloat
-
NSValueTransformer
to convert betweenPSPDFFreeTextAnnotationIntent
enum and string value.Note
The transformer is added in the class initialize phase. RequiresFreeTextAnnotation
to be accessed at least once.Declaration
Objective-C
extern NS_SWIFT_NAME(freeTextAnnotationIntent) const NSValueTransformerName PSPDFFreeTextAnnotationIntentTransformerName
Swift
static let freeTextAnnotationIntent: NSValueTransformerName
-
An NSRange representing an invalid range of
PSPDFGlyph
s.Declaration
Objective-C
extern const NSRange PSPDFInvalidGlyphRange
Swift
let InvalidGlyphRange: NSRange
-
X-Callback URL, see http://x-callback-url.com
Note
This is used for the Chrome activity inPSPDFWebViewController
. Example:PSPDFKitGlobal.sharedInstance[PSPDFSettingKeyXCallbackURLString] = @"pspdfcatalog://";
Declaration
Objective-C
extern const PSPDFSettingKey _Nonnull PSPDFSettingKeyXCallbackURLString
-
Custom PSPDFApplicationPolicy instance that can be configured with
setLicenseKey:options:
.Declaration
Objective-C
extern const PSPDFSettingKey _Nonnull PSPDFSettingKeyApplicationPolicy
-
Custom PSPDFFileManager instance that can be configured with
setLicenseKey:options:
.Declaration
Objective-C
extern const PSPDFSettingKey _Nonnull PSPDFSettingKeyFileManager
-
Custom coordinated PSPDFFileManager instance that can be configured with
setLicenseKey:options:
.Declaration
Objective-C
extern const PSPDFSettingKey _Nonnull PSPDFSettingKeyCoordinatedFileManager
-
Specifies whether coordinated file operations are used by default in
Document
. CreatesPSPDFCoordinatedFileDataProvider
s when initializing documents with local URLs. Expects a booleanNSNumber
. Defaults to@YES
. Set to@NO
to disable.Declaration
Objective-C
extern const PSPDFSettingKey _Nonnull PSPDFSettingKeyFileCoordinationEnabled
-
Specifies the indexing priority that the shared
PSPDFLibrary
instance must use. Must be a validPSPDFLibraryIndexingPriority
value wrapped in aNSNumber
.See
PSPDFLibraryIndexingPriority` for details.Declaration
Objective-C
extern const PSPDFSettingKey _Nonnull PSPDFSettingKeyLibraryIndexingPriority
-
Enables various debug UI options. (e.g. more settings)
Declaration
Objective-C
extern const PSPDFSettingKey _Nonnull PSPDFSettingKeyDebugMode
-
Allows you to specify additional font directories. Expects an array of strings.
Some PDFs don’t contain embedded fonts and sometimes the system fonts don’t provide a good enough replacement. In that case, you can ship your own fonts and point PSPDFKit to your additional font directories.
Declaration
Objective-C
extern const PSPDFSettingKey _Nonnull PSPDFSettingKeyAdditionalFontDirectories
-
Specifies whether
Document
permissions are honored in the PSPDFKit UI.PSPDFKit
will honor certain PDF permissions and prevent corresponding UI actions, such as editing annotations, if the document disallows them. This option can be used to globally disable this behavior and instead allow all configured UI actions regardless of document permissions.Note
This option will affect the output ofPSPDFDocument.features
whilePSPDFDocument.permissions
will still reflect the actual values configured in the PDF document. For documents that were instantiated before changing this option,[document.features updateFeatures]
needs to be invoked to ensure the changes are correctly reflected in the features system.Expects a boolean
NSNumber
. Defaults to@YES
. Set to@NO
to disable.Declaration
Objective-C
extern const PSPDFSettingKey _Nonnull PSPDFSettingKeyHonorDocumentPermissions
-
Deprecated
Deprecated in PSPDFKit 4.x for macOS. Compatibility constant. Please migrate to PSPDFFeatureMaskRequireSignedSource
Objective-C source compatibility with 9.2.x and older.
Declaration
Objective-C
extern const PSPDFFeatureMask PSPDFFeatureRequireSignedSource
Swift
let PSPDFFeatureRequireSignedSource: Features
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFSettingKeyXCallbackURLString
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSettingKey const PSPDFXCallbackURLStringKey
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFSettingKeyApplicationPolicy
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSettingKey const PSPDFApplicationPolicyKey
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFSettingKeyFileManager
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSettingKey const PSPDFFileManagerKey
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFSettingKeyCoordinatedFileManager
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSettingKey const PSPDFCoordinatedFileManagerKey
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFSettingKeyFileCoordinationEnabled
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSettingKey const PSPDFFileCoordinationEnabledKey
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFSettingKeyLibraryIndexingPriority
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSettingKey const PSPDFLibraryIndexingPriorityKey
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFSettingKeyDebugMode
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSettingKey const PSPDFKitDebugModeKey
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFSettingKeyAdditionalFontDirectories
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSettingKey const PSPDFAdditionalFontDirectories
-
Deprecated
Deprecated in PSPDFKit 4.3 for macOS. Please use
PSPDFSettingKeyHonorDocumentPermissions
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSettingKey const PSPDFHonorDocumentPermissionsKey
-
The library version.
Declaration
Objective-C
extern const NSUInteger PSPDFLibraryVersion
Swift
let PSPDFLibraryVersion: UInt
-
Posted when the library begins indexing a document.
The
object
of this notification will be thePDFLibrary
instance that posts it. The UID of the document about to be indexed can be found in theuserInfo
underPSPDFLibraryNotificationUIDKey
.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFLibraryWillStartIndexingDocumentNotification
Swift
static let PSPDFLibraryWillStartIndexingDocument: NSNotification.Name
-
Posted when the library completed or failed indexing a document.
The
object
of this notification will be thePDFLibrary
instance that posts it. The UID of the indexed document can be found in theuserInfo
underPSPDFLibraryNotificationUIDKey
, whilePSPDFLibraryNotificationSuccessKey
holds aBool
, indicting whether indexing completed successfully.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFLibraryDidFinishIndexingDocumentNotification
Swift
static let PSPDFLibraryDidFinishIndexingDocument: NSNotification.Name
-
Posted when the library removed a document from the index.
The
object
of this notification will be thePDFLibrary
instance that posts it. The UID of the indexed document can be found in theuserInfo
underPSPDFLibraryNotificationUIDKey
.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFLibraryDidRemoveDocumentNotification
Swift
static let PSPDFLibraryDidRemoveDocument: NSNotification.Name
-
Posted when the library did complete clearing all its indexes.
The
object
of this notification will be thePDFLibrary
on whichclearAllIndexes()
has been called. NouserInfo
will be provided.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFLibraryDidClearIndexesNotification
Swift
static let PSPDFLibraryDidClearIndexes: NSNotification.Name
-
In document-specific notifications posted by
PDFLibrary
, theuserInfo
key under which the UID of that document can be found.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFLibraryNotificationUIDKey
Swift
let PSPDFLibraryNotificationUIDKey: String
-
In
PSPDFLibraryDidFinishIndexingDocumentNotification
, theuserInfo
key holding the success state of the operation as aBool
.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFLibraryNotificationSuccessKey
Swift
let PSPDFLibraryNotificationSuccessKey: String
-
The name of the exception thrown when an invalid operation occurs.
Declaration
Objective-C
extern const NSExceptionName _Nonnull PSPDFLibraryInvalidOperationException
Swift
static let PSPDFLibraryInvalidOperationException: NSExceptionName
-
The name of PSPDFKit’s custom porter tokenizer.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFLibraryPorterTokenizerName
Swift
let PSPDFLibraryPorterTokenizerName: String
-
The name of PSPDFKit’s custom Unicode tokenizer. This tokenizer wraps around SQLite’s
unicode61
tokenizer to add full case folding to the indexed text.Warning
This tokenizer is only available when the library supports FTS5. Specifying this as the value for thePSPDFLibrary.tokenizer
property will result in an error when trying to create the library.Declaration
Objective-C
extern NS_SWIFT_NAME(PDFLibrary.UnicodeTokenizerName) NSString *const PSPDFLibraryUnicodeTokenizerName
Swift
class let UnicodeTokenizerName: String
-
Option keys. Limit the number of document results.
Declaration
Objective-C
extern const PSPDFLibraryOption _Nonnull PSPDFLibraryOptionMaximumSearchResultsTotal
Swift
static let maximumSearchResultsTotal: PDFLibrary.Option
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFLibraryOption const PSPDFLibraryOptionMaximumSearchResultsPerDocument
Swift
static let maximumSearchResultsPerDocument: PDFLibrary.Option
-
Limit the number of preview results.
Declaration
Objective-C
extern const PSPDFLibraryOption _Nonnull PSPDFLibraryOptionMaximumPreviewResultsTotal
Swift
static let maximumPreviewResultsTotal: PDFLibrary.Option
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFLibraryOption const PSPDFLibraryOptionMaximumPreviewResultsPerDocument
Swift
static let maximumPreviewResultsPerDocument: PDFLibrary.Option
-
Set this to @YES to restrict search to exact word matches instead of beginsWith/endsWith checks.
Warning
If the default tokenizer is used, this will impact performance. If you find it is too slow, consider using a differenttokenizer
. See https://pspdfkit.com/guides/ios/current/features/indexed-full-text-search/Declaration
Objective-C
extern const PSPDFLibraryOption _Nonnull PSPDFLibraryOptionMatchExactWordsOnly
Swift
static let matchExactWordsOnly: PDFLibrary.Option
-
Set this to @YES to restrict search to exact phrase matches. This means that “Lorem ipsum dolor” only matches that phrase and not something like “Lorem sit ipsum dolor”.
Warning
If the default tokenizer is used, this will impact performance. If you find it is too slow, consider using a differenttokenizer
. See https://pspdfkit.com/guides/ios/current/features/indexed-full-text-search/Declaration
Objective-C
extern const PSPDFLibraryOption _Nonnull PSPDFLibraryOptionMatchExactPhrasesOnly
Swift
static let matchExactPhrasesOnly: PDFLibrary.Option
-
Set this to @YES to exclude annotations from the search. By default, indexed annotations will be searched.
Declaration
Objective-C
extern const PSPDFLibraryOption _Nonnull PSPDFLibraryOptionExcludeAnnotations
Swift
static let excludeAnnotations: PDFLibrary.Option
-
Set this to @YES to exclude document text from the search. By default, indexed document text will be searched.
Declaration
Objective-C
extern const PSPDFLibraryOption _Nonnull PSPDFLibraryOptionExcludeDocumentText
Swift
static let excludeDocumentText: PDFLibrary.Option
-
Customizes the range of the preview string. Defaults to 20/160.
Declaration
Objective-C
extern const PSPDFLibraryOption _Nonnull PSPDFLibraryOptionPreviewRange
Swift
static let previewRange: PDFLibrary.Option
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFLibraryOptionMaximumSearchResultsTotal
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFLibraryMaximumSearchResultsTotalKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFLibraryOptionMaximumSearchResultsPerDocument
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFLibraryMaximumSearchResultsPerDocumentKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFLibraryOptionPreviewResultsTotal
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFLibraryMaximumPreviewResultsTotalKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFLibraryOptionMaximumPreviewResultsPerDocument
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFLibraryMaximumPreviewResultsPerDocumentKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFLibraryOptionMatchExactWordsOnly
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFLibraryMatchExactWordsOnlyKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFLibraryOptionMatchExactPhrasesOnly
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFLibraryMatchExactPhrasesOnlyKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFLibraryOptionExcludeAnnotations
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFLibraryExcludeAnnotationsKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFLibraryOptionExcludeDocumentText
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFLibraryExcludeDocumentTextKey
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
PSPDFLibraryOptionPreviewRange
instead.Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFLibraryPreviewRangeKey
-
Metadata key for the document title. Object will be of type String.
Declaration
Objective-C
extern NS_SWIFT_NAME(title) const PSPDFMetadataName PSPDFMetadataTitleKey
-
Metadata key for the document author. Object will be of type String.
Declaration
Objective-C
extern NS_SWIFT_NAME(author) const PSPDFMetadataName PSPDFMetadataAuthorKey
-
Metadata key for the document subject. Object will be of type String.
Declaration
Objective-C
extern NS_SWIFT_NAME(subject) const PSPDFMetadataName PSPDFMetadataSubjectKey
-
Metadata key for the document keywords. Object will be of type String.
Declaration
Objective-C
extern NS_SWIFT_NAME(keywords) const PSPDFMetadataName PSPDFMetadataKeywordsKey
-
Metadata key for the document creator. Object will be of type String.
Declaration
Objective-C
extern NS_SWIFT_NAME(creator) const PSPDFMetadataName PSPDFMetadataCreatorKey
-
Metadata key for the document producer. Object will be of type String.
Declaration
Objective-C
extern NS_SWIFT_NAME(producer) const PSPDFMetadataName PSPDFMetadataProducerKey
-
Metadata key for the document creation date. Object will be of type Date.
Declaration
Objective-C
extern NS_SWIFT_NAME(creationDate) const PSPDFMetadataName PSPDFMetadataCreationDateKey
-
Metadata key for the document modification date. Object will be of type Date.
Declaration
Objective-C
extern NS_SWIFT_NAME(modificationDate) const PSPDFMetadataName PSPDFMetadataModDateKey
-
Metadata key for the document’s trapped value. Object will be of type String.
Declaration
Objective-C
extern NS_SWIFT_NAME(trapped) const PSPDFMetadataName PSPDFMetadataTrappedKey
-
Transforms named actions to enum type and back.
Note
The transformer is added in the class initialize phase. RequiresPSPDFNamedAction
to be accessed at least once.Declaration
Objective-C
extern NS_SWIFT_NAME(namedActionType) const NSValueTransformerName PSPDFNamedActionTypeTransformerName
Swift
static let namedActionType: NSValueTransformerName
-
Marks an unused or invalid page number.
Declaration
Objective-C
static const PSPDFPageIndex PSPDFPageNull = (9223372036854775807L * 2UL + 1UL)
Swift
let PSPDFPageNull: PageIndex
-
Specifies a blank page.
Declaration
Objective-C
extern const PSPDFTemplateIdentifier _Nonnull PSPDFTemplateIdentifierBlank
Swift
static let blank: PageTemplate.Identifier
-
Specifies a pattern for a new page with a dot grid that is 5mm apart.
Declaration
Objective-C
extern const PSPDFTemplateIdentifier _Nonnull PSPDFTemplateIdentifierDot5mm
Swift
static let dot5mm: PageTemplate.Identifier
-
Specifies a pattern for a new page with a grid that is 5mm apart.
Declaration
Objective-C
extern const PSPDFTemplateIdentifier _Nonnull PSPDFTemplateIdentifierGrid5mm
Swift
static let grid5mm: PageTemplate.Identifier
-
Specifies a pattern for a new page with lines that are 5mm apart.
Declaration
Objective-C
extern const PSPDFTemplateIdentifier _Nonnull PSPDFTemplateIdentifierLines5mm
Swift
static let lines5mm: PageTemplate.Identifier
-
Specifies a pattern for a new page with lines that are 7mm apart.
Declaration
Objective-C
extern const PSPDFTemplateIdentifier _Nonnull PSPDFTemplateIdentifierLines7mm
Swift
static let lines7mm: PageTemplate.Identifier
-
Specifies a pattern for a new page with image.
Declaration
Objective-C
extern const PSPDFTemplateIdentifier _Nonnull PSPDFTemplateIdentifierImage
Swift
static let image: PageTemplate.Identifier
-
NSValueTransformer
to convert betweenPSPDFPolygonAnnotationIntent
enum and string value.Note
The transformer is added in the class initialize phase. RequiresPSPDFPolygonAnnotation
to be accessed at least once.Declaration
Objective-C
extern NS_SWIFT_NAME(polygonAnnotationIntent) const NSValueTransformerName PSPDFPolygonAnnotationIntentTransformerName
Swift
static let polygonAnnotationIntent: NSValueTransformerName
-
Available keys for options.
PSPDFProcessorAnnotationDictKey
in form of pageIndex -> annotations. Annotations will be flattened when type is set, unlessPSPDFProcessorAnnotationAsDictionaryKey
is also set. Don’t forget to also define the types of annotations that should be processed:PSPDFProcessorAnnotationTypesKey: @(PSPDFAnnotationTypeAll)
.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorAnnotationTypesKey
Swift
let PSPDFProcessorAnnotationTypesKey: String
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFProcessorAnnotationDictKey
Swift
let PSPDFProcessorAnnotationDictKey: String
-
Set to
@YES
to add annotations as dictionary and don’t flatten them. Dictionary keys are the original page indexes.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorAnnotationAsDictionaryKey
Swift
let PSPDFProcessorAnnotationAsDictionaryKey: String
-
Specifies the user password that should be set on the generated PDF.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorUserPasswordKey
Swift
let PSPDFProcessorUserPasswordKey: String
-
Specifies the owner password that should be set on the generated PDF.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorOwnerPasswordKey
Swift
let PSPDFProcessorOwnerPasswordKey: String
-
Specifies the key length that should be used to encrypt the PDF. Value must be divisible by 8 and in the range of 40 to 128.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorKeyLengthKey
Swift
let PSPDFProcessorKeyLengthKey: String
-
Defaults to
PSPDFPaperSizeA4
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorPageRectKey
Swift
let PSPDFProcessorPageRectKey: String
-
Defaults to 10. Set lower to optimize, higher if you have a lot of content.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorNumberOfPagesKey
Swift
let PSPDFProcessorNumberOfPagesKey: String
-
Defines the page margin. Defaults to
UIEdgeInsetsMake(5, 5, 5, 5)
.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorPageBorderMarginKey
Swift
let PSPDFProcessorPageBorderMarginKey: String
-
If you print web pages, they might load async content which can’t be reliably detected. Defaults to 0.05 seconds. Set higher if you get blank pages.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorAdditionalDelayKey
Swift
let PSPDFProcessorAdditionalDelayKey: String
-
Defaults to NO. Adds an additional step to strip white pages if you’re getting any at the end.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorStripEmptyPagesKey
Swift
let PSPDFProcessorStripEmptyPagesKey: String
-
Common page sizes. Use for
PSPDFProcessorPageRectKey
.Declaration
Objective-C
extern const CGRect PSPDFPaperSizeA4
Swift
let PSPDFPaperSizeA4: CGRect
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT const CGRect PSPDFPaperSizeLetter
Swift
let PSPDFPaperSizeLetter: CGRect
-
common options Will override any defaults if set.
Declaration
Objective-C
extern NSString *const _Nonnull PSPDFProcessorDocumentTitleKey
Swift
let PSPDFProcessorDocumentTitleKey: String
-
This notification is triggered if something happens that changes the way a page looks.
The user info dictionary of this notification always contains the key
PSPDFRenderManagerRenderResultChangedDocumentKey
which contains the document that changed and optionallyPSPDFRenderManagerRenderResultChangedPagesKey
which contains an index set of the pages that changed within this document.If a document was changed e.g. by adding or removing an annotation, this notification tells you that the render engine and the cache have been updated and scheduling a new render task is guaranteed to return the new state of the document.
In other words: If you constantly want to show up to date data, observe this notification and request a new image when this notification is posted.
Note
This notification is posted on an arbitrary queue. If you need to react on this on the main queue, you need to switch to the main queue yourself.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFRenderManagerRenderResultDidChangeNotification
Swift
static let PSPDFRenderManagerRenderResultDidChange: NSNotification.Name
-
The key of a
PSPDFRenderManagerRenderResultDidChangeNotification
userInfo’s dictionary, containing theDocument
that was changed.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFRenderManagerRenderResultChangedDocumentKey
Swift
let PSPDFRenderManagerRenderResultChangedDocumentKey: String
-
The key of a
PSPDFRenderManagerRenderResultDidChangeNotification
userInfo’s dictionary, containing anNSIndexSet
with all the relevant pages. If the entry for this key in the user info dictionary isnil
, the whole document should be treated as changed.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFRenderManagerRenderResultChangedPagesKey
Swift
let PSPDFRenderManagerRenderResultChangedPagesKey: String
-
The
PSPDFPageInfo
object containing page info.Declaration
Objective-C
extern NSString *const _Nonnull PSPDFPageRendererPageInfoKey
Swift
let PSPDFPageRendererPageInfoKey: String
-
Absolute limit for image rendering (memory constraint)
Declaration
Objective-C
extern const CGSize PSPDFRenderSizeLimit
Swift
let PSPDFRenderSizeLimit: CGSize
-
Transforms a rendition action type enum to string and back.
Note
The transformer is added in the class initialize phase. RequiresPSPDFRenditionAction
to be accessed at least once.Declaration
Objective-C
extern NS_SWIFT_NAME(renditionActionType) const NSValueTransformerName PSPDFRenditionActionTypeTransformerName
Swift
static let renditionActionType: NSValueTransformerName
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT NSString *const PSPDFSignerErrorDomain
Swift
let PSPDFSignerErrorDomain: String
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSoundAnnotationEncoding const PSPDFSoundAnnotationEncodingRaw
Swift
static let raw: SoundAnnotation.Encoding
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSoundAnnotationEncoding const PSPDFSoundAnnotationEncodingSigned
Swift
static let signed: SoundAnnotation.Encoding
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSoundAnnotationEncoding const PSPDFSoundAnnotationEncodingMuLaw
Swift
static let muLaw: SoundAnnotation.Encoding
-
Undocumented
Declaration
Objective-C
PSPDF_EXPORT PSPDFSoundAnnotationEncoding const PSPDFSoundAnnotationEncodingALaw
Swift
static let aLaw: SoundAnnotation.Encoding
-
Posted when recording or playback is started, paused or stopped.
Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFSoundAnnotationChangedStateNotification
Swift
static let PSPDFSoundAnnotationChangedState: NSNotification.Name
-
Posted when
+stopRecordingOrPlaybackForAllExcept:
is invoked.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFSoundAnnotationStopAllNotification
Swift
static let PSPDFSoundAnnotationStopAll: NSNotification.Name
-
A green checkmark stamp. Does not display text. From Adobe Acrobat’s Sign Here stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeAccepted
Swift
static let accepted: StampAnnotation.Kind
-
A green stamp that displays the text ‘APPROVED’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeApproved
Swift
static let approved: StampAnnotation.Kind
-
A stamp that displays the text ‘AS IS’ in English. From the PDF specification.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeAsIs
Swift
static let asIs: StampAnnotation.Kind
-
A green stamp that displays the text ‘COMPLETED’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeCompleted
Swift
static let completed: StampAnnotation.Kind
-
A stamp that displays the text ‘CONFIDENTIAL’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeConfidential
Swift
static let confidential: StampAnnotation.Kind
-
A stamp that displays the text ‘DEPARTMENTAL’ in English. From the PDF specification.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeDepartmental
Swift
static let departmental: StampAnnotation.Kind
-
A stamp that displays the text ‘DRAFT’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeDraft
Swift
static let draft: StampAnnotation.Kind
-
A stamp that displays the text ‘EXPERIMENTAL’ in English. From the PDF specification.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeExperimental
Swift
static let experimental: StampAnnotation.Kind
-
A stamp that displays the text ‘EXPIRED’ in English. From the PDF specification.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeExpired
Swift
static let expired: StampAnnotation.Kind
-
A green stamp that displays the text ‘FINAL’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeFinal
Swift
static let final: StampAnnotation.Kind
-
A stamp that displays the text ‘FOR COMMENT’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeForComment
Swift
static let forComment: StampAnnotation.Kind
-
A stamp that displays the text ‘FOR PUBLIC RELEASE’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeForPublicRelease
Swift
static let forPublicRelease: StampAnnotation.Kind
-
A stamp that displays the text ‘INFORMATION ONLY’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeInformationOnly
Swift
static let informationOnly: StampAnnotation.Kind
-
A stamp with a left-pointing arrow that displays the text ‘INITIAL HERE’ in English. From Adobe Acrobat’s Sign Here stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeInitialHere
Swift
static let initialHere: StampAnnotation.Kind
-
A red stamp that displays the text ‘NOT APPROVED’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeNotApproved
Swift
static let notApproved: StampAnnotation.Kind
-
A stamp that displays the text ‘NOT FOR PUBLIC RELEASE’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeNotForPublicRelease
Swift
static let notForPublicRelease: StampAnnotation.Kind
-
A stamp that displays the text ‘PRELIMINARY RESULTS’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypePreliminaryResults
Swift
static let preliminaryResults: StampAnnotation.Kind
-
A red cross stamp. Does not display text. From Adobe Acrobat’s Sign Here stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeRejected
Swift
static let rejected: StampAnnotation.Kind
-
A stamp that displays the text ‘REVISED’ in English. From Adobe Acrobat’s Dynamic stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeRevised
Swift
static let revised: StampAnnotation.Kind
-
A red stamp with a left-pointing arrow that displays the text ‘SIGN HERE’ in English. From Adobe Acrobat’s Sign Here stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeSignHere
Swift
static let signHere: StampAnnotation.Kind
-
A stamp that displays the text ‘SOLD’ in English. From the PDF specification.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeSold
Swift
static let sold: StampAnnotation.Kind
-
A stamp that displays the text ‘TOP SECRET’ in English. From the PDF specification.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeTopSecret
Swift
static let topSecret: StampAnnotation.Kind
-
A red stamp that displays the text ‘VOID’ in English. From Adobe Acrobat’s Standard Business stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeVoid
Swift
static let void: StampAnnotation.Kind
-
A yellow stamp with a left-pointing arrow that displays the text ‘WITNESS’ in English. From Adobe Acrobat’s Sign Here stamps.
Declaration
Objective-C
extern const PSPDFStampType _Nonnull PSPDFStampTypeWitness
Swift
static let witness: StampAnnotation.Kind
-
Mask for all text markups.
PSPDFAnnotationTypeHighlight|PSPDFAnnotationTypeStrikeOut|PSPDFAnnotationTypeUnderline|PSPDFAnnotationTypeSquiggly
Declaration
Objective-C
extern const PSPDFAnnotationType PSPDFAnnotationTypeTextMarkup
Swift
let PSPDFAnnotationTypeTextMarkup: Annotation.Kind
-
Sent once we have new undo operations available.
Note
Always sent on the main thread.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFUndoControllerAddedUndoActionNotification
Swift
static let PSPDFUndoControllerAddedUndoAction: NSNotification.Name
-
Sent once we have available undo actions have been changed/removed.
Note
Always sent on the main thread.Declaration
Objective-C
extern const NSNotificationName _Nonnull PSPDFUndoControllerRemovedUndoActionNotification
Swift
static let PSPDFUndoControllerRemovedUndoAction: NSNotification.Name